/*
 * Mutex.h
 *
 *  Created on: Oct 26, 2012
 *      Author: lucas
 */

#ifndef MUTEX_H_
#define MUTEX_H_

#include <pthread.h>

class Mutex {
private:
	pthread_mutex_t m;
	Mutex(const Mutex& mutex);
	Mutex& operator=(const Mutex& mutex);
public:
	Mutex();
	void lock();
	void unlock();
	virtual ~Mutex();
	friend class ConditionVariable;
};

#endif /* MUTEX_H_ */
